package com.github.wujichen158.andemusic.playernbt;

import net.minecraftforge.common.capabilities.CapabilityManager;

import java.util.concurrent.Callable;

public class MusicCapabilityFactory implements Callable<IMusicCapability> {
    @Override
    public IMusicCapability call() {
        return new MusicCapability();
    }

    public static void registerCap() {
        CapabilityManager.INSTANCE.register(IMusicCapability.class,
                MusicTypeStorage.INSTANCE,
                new MusicCapabilityFactory());
//        CapabilityManager.INSTANCE.register(IMusicCapability.class,
//                MusicTypeStorage.INSTANCE,
//                MusicCapability.class);

    }
}